<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.etc.myblog.entity.User"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>个人资料</title>
</head>

<body>
	<%
		User user = (User)session.getAttribute("user");
	%>

	<jsp:include page="../inc/head_nav.jsp" />
	
	<div class="hr tp-div-nexthr"
		style="margin-top: 0;margin-bottom: 0;padding: 0;"></div>
	<div class="container pb-15">
		<!-- Example row of columns -->
		<div class="row">
			<div class="span12">

				<!--内容页面-->

				<div class="label-div b-30 border-all pt-5 t-20"
					style="position: relative; padding-left: 0;">
					<div class="txmd">
						<h4 class="mmh4">专栏管理</h4>
						<form id="submodifyform" enctype="multipart/form-data"  action="${pageContext.request.contextPath}/ScolumnSer?tag=update" method="post" >
							
							<!-- 验证用户名 -->
							<div class="control-group">
								<label class="control-label" for="inputName">
									<p >专栏名称</p>
								</label>
								<div class="controls">
									<input id="inputName_Read" type="text" name="columnName"
										value="${column.getColumnName()}" placeholder="" class="input-xlarge placeholder on"
										maxlength="10" rel="input-text" > <span
										class="help-inline"></span><br/><br/>专栏图像：<br/>
										<img alt="专栏图像" src="${pageContext.request.contextPath}${column.getColumnImgUrl()}" width="100px" height="100px">
								</div>
								<div class="mmclear"></div>

							<!-- 上传图片 -->
							<div class="control-group">
								<label class="control-label" for="avatarUpload">上传图像
									
								</label>
								<div class="controls">
									<div id="avatarUpload">
										 <span
											class="help-inline"></span>
									</div>
									<input type="file" id="mmupjt" name="desc"
										/> <span class="help-block" style="color: red;">
										请上传jpg/jpeg/png/gif格式文件，文件小于1MB </span>
								</div>
								<div class="mmclear"></div>
							</div>
							
							
							<input type="hidden" value="${column.columnId}" name="columnId"/>

							<!--个人简述 -->
							<div class="control-group ">
								<label class="control-label" for="textAbstract">专栏简介
									
								</label>
								<div class="controls">
									<textarea id="textAbstract_noError" name="desc"
										placeholder="你的专栏介绍，建议大于100字。介绍的越详细，越容易得到网友关注哦。" rows="4"
										rel="text-area">
										${column.getColumnDesc()}
                    				</textarea>
									<span class="help-inline"></span>
								</div>
								<div class="mmclear"></div>
							</div>
						</form>
					</div>
					<div class="basic"
						style="border-top:1px solid #ccc; text-align:right; margin-left:15px; padding:10px 0px 5px 0px;">
						<input type="image" src="${pageContext.request.contextPath}/resource/images/blutbottom.jpg" value=""
							style="width:81px; height:46px;" onclick="document.getElementById('submodifyform').submit()" />
					</div>
					<div class="mmclear"></div>
				</div>
			</div>
		</div>
		<!-- class="row"的div标签结束 -->
	</div>
	<!-- class="container pb-15"的div标签结束 -->
	<jsp:include page="../inc/footer_nav.jsp"></jsp:include>

	<script type="text/javascript">
		//回到顶部
		backToTop('body');
	</script>

	<a class="backToTop" href="javascript:void(0);" title="返回顶部"
		style="display: none;"></a>
</body>
</html>
